<%@ page language="java" contentType="text/html; charset=UTF-8"	pageEncoding="UTF-8"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<style type="text/css">
#bound {
	border-top: 1px solid green;
	height: 900px;
}

#left {
	text-align: left;
	margin-left: 1px;
	width: 150px;
	float: left;
	clear: left;
	border-right: 1px solid green;
	height: 100%;
}

#right {
	border-left: 1px solid green;
	height: 100%;
}

#table {
	width: 800px;
	border: 1px solid black;
}

ul {
	list-style: none;
	text-align: left;
	padding: 10px;
}

#table tr {
	border: 1px solid green;
}
</style>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Quản lý người dùng</title>
</head>
<body>
	<center>
		<div id="bound">
			<div id="left">
				<ul>
					<li><html:link action="listadmin.do?method=listAdmin" >Administrator</html:link></li>
					<li><html:link action="listadmin.do?method=listContributer">Cộng tác viên</html:link></li>
					<li><html:link action="listadmin.do?method=listMember">Thành viên</html:link></li>
				</ul>
			</div>
			<div id="right">
				<center>
					<br />
					<div>
						<h3>Danh sách thành viên</h3>
					</div>
					<br /> <br />

					<div>
						<table id="table" border="1px solid black">
							<tr style="background-color: gray;">
								<td colspan="6" align="right"><a href="/add_new_user.jsp">[Add]</a></td>
							</tr>
							<tr>
								<td>Stt</td>
								<td>Tên đăng nhập</td>
								<td>Họ tên</td>
								<td>Email</td>
								<td colspan="2">Chức năng</td>
							</tr>
							<logic:iterate id="user" name="dynaAdminListForm" indexId="count"
								property="memberList">
								<tr class="row<%=count.intValue() % 2%>">
									<td><%=count + 1%></td>
									<td><bean:write name="user" property="userId" /></td>
									<td><bean:write name="user" property="fullName" /></td>
									<td><bean:write name="user" property="email" /></td>
									<td><html:link action="/editadmin.do?method=editUser" paramName="user" paramId="userId" paramProperty="userId">Edit</html:link>
									</td>
									<td><html:link action="/deleteadmin.do?method=deleteUser" paramName="user" paramId="userId" paramProperty="userId">Delete</html:link></td>
								</tr>
							</logic:iterate>
						</table>
					</div>
				</center>
			</div>
		</div>
	</center>
</body>
</html>